package com.yesallchina.wxapp.officialaccount.api.beans;



import com.yesallchina.wxapp.officialaccount.api.enums.MessageEventTypeEnum;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "xml")
public class EventMessage extends Message {
    private String event;
    private String eventKey;
    private String ticket;

    public EventMessage() {
        super();
        super.setMsgType(MessageEventTypeEnum.EVENT.getMsgType());
    }

    public EventMessage(String event, String eventKey, String ticket) {
        super();
        super.setMsgType(MessageEventTypeEnum.EVENT.getMsgType());
        this.event = event;
        this.eventKey = eventKey;
        this.ticket = ticket;
    }

    @XmlElement(name = "Event")
    public String getEvent() {
        return event;
    }

    public void setEvent(String event) {
        this.event = event;
    }

    @XmlElement(name="EventKey")
    public String getEventKey() {
        return eventKey;
    }

    public void setEventKey(String eventKey) {
        this.eventKey = eventKey;
    }

    @XmlElement(name="Ticket")
    public String getTicket() {
        return ticket;
    }

    public void setTicket(String ticket) {
        this.ticket = ticket;
    }

}
